package com.example.spring5.bean;

import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Repository
public class UserDao {

    private String userName;

    public UserDao(String userName) {
        this.userName = userName;
    }

    public UserDao() {}

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void add(){
        System.out.println(this.userName);
    }
}
